<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<jsp:include page="../common/top.jsp"/>

<script type='text/javascript' src='common.js'></script>
		<script type='text/javascript' src='css.js'></script>
		<script type='text/javascript' src='standardista-table-sorting.js'>
</script>


<html:form action="/struts/admin/searchExecutiveAction">

<table width="60%">
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td class="displayLabel">First name</td>
		<td class="displayValue"><html:text property="firstName" styleClass="inputValue" errorStyleClass="errorInput"/></td>
		
		<td class="displayLabel">Username</td>
		<td class="displayValue"><html:text property="userName" styleClass="inputValue" errorStyleClass="errorInput"/></td>
	</tr>
	<tr>

		<td class="displayLabel">Last name</td>
		<td class="displayValue"><html:text property="lastName" styleClass="inputValue" errorStyleClass="errorInput"/></td>
		
		
		
		<td class="displayLabel">Admin</td>
		<td class="displayValue"><html:checkbox property="admin"/></td>
	</tr>
	<tr>
		<td align="left">
			<html:submit value="Search"/>
			<input type="hidden" name="methodToCall" value="searchExecutives" />
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
<c:set var="currentAction" scope="session" value="/struts/admin/searchExecutiveAction.do"/>
<c:set var="nextMethod" scope="session" value="searchNext"/>
<c:set var="previousMethod" scope="session" value="searchPrevious"/>
<jsp:include page="../common/paging.jsp"/>
	
	<display:table name="listOfExecs" defaultsort="1" defaultorder="descending" width="100%" id="searchTable">
		<display:setProperty name="css.table" value="searchTable" />
		<display:setProperty name="basic.empty.showtable" value="true" />
		<display:column property="firstName" title="First Name" href="/ejc/struts/admin/updateExecutiveAction.do?methodToCall=preUpdateExec" paramId="executiveId"  paramProperty="executiveId" headerClass="sortable" />
		<display:column property="lastName" title="Last Name" href="/ejc/struts/admin/updateExecutiveAction.do?methodToCall=preUpdateExec" paramId="executiveId"  paramProperty="executiveId" headerClass="sortable" />
		<display:column property="username" title="Username" headerClass="sortable" />
		<display:column property="admin" title="Admin" headerClass="sortable" />
	</display:table>

<jsp:include page="../common/paging.jsp"/>

</html:form>


<jsp:include page="../common/bottom.jsp" />
